package com.v.im.businessservice.dao;

import com.v.im.businessservice.bean.ImChatGroupUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ImChatGroupUserDao extends JpaRepository<ImChatGroupUserEntity,Long> {

    List<ImChatGroupUserEntity> findByUserId(String userId);

    List<ImChatGroupUserEntity> findByChatGroupId(String chatGroupId);

}
